package com.station.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.station.entity.EnergystationBaseinfoEntity;
import com.station.service.EnergystationBaseinfoService;
import com.station.service.mapper.EnergystationBaseinfoMapper;
import com.station.vo.EnergystationBaseinfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName:PayInfoServiceImpl
 * @Description:
 * <p>支付信息服务类</p>
 * @author:admin
 */
@Service
public class EnergystationBaseinfoServiceImpl extends BaseServiceImpl<EnergystationBaseinfoMapper, EnergystationBaseinfoEntity> implements EnergystationBaseinfoService {
	/**注入dao*/
	@Autowired
	private EnergystationBaseinfoMapper energystationBaseinfoMapper;




	@Override
	public EnergystationBaseinfoEntity query(EnergystationBaseinfoVo vo) {
		LambdaQueryWrapper<EnergystationBaseinfoEntity> queryWrapper = new LambdaQueryWrapper<>();
		queryWrapper.eq(EnergystationBaseinfoEntity::getEnergystationid,vo.getEnergystationid());
		EnergystationBaseinfoEntity entity = energystationBaseinfoMapper.selectOne(queryWrapper);
		return entity;
	}


}
